import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { BookstoreSharedModule } from '../../shared';
import {
    BookTypeService,
    BookTypePopupService,
    BookTypeComponent,
    BookTypeDetailComponent,
    BookTypeDialogComponent,
    BookTypePopupComponent,
    BookTypeDeletePopupComponent,
    BookTypeDeleteDialogComponent,
    bookTypeRoute,
    bookTypePopupRoute,
    BookTypeResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...bookTypeRoute,
    ...bookTypePopupRoute,
];

@NgModule({
    imports: [
        BookstoreSharedModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        BookTypeComponent,
        BookTypeDetailComponent,
        BookTypeDialogComponent,
        BookTypeDeleteDialogComponent,
        BookTypePopupComponent,
        BookTypeDeletePopupComponent,
    ],
    entryComponents: [
        BookTypeComponent,
        BookTypeDialogComponent,
        BookTypePopupComponent,
        BookTypeDeleteDialogComponent,
        BookTypeDeletePopupComponent,
    ],
    providers: [
        BookTypeService,
        BookTypePopupService,
        BookTypeResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class BookstoreBookTypeModule {}
